﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RoyEngine;

namespace RedisTest
{
    public class Player : RoyDataBase
    {
        [RoyValue]
        public string Name { get; set; }

        [RoyValue]
        public bool IsAdult { get; set; }

        [RoyValue(Sortable = true, Desc = true)]
        public long Power { get; set; }

        [RoyValue]
        public List<string> Stones { get; set; } 

        public override string ToString()
        {
            return string.Format("Id:{2}, Player:{0}, Power:{1}", Name, Power, Id);
        }
    }
}
